package com.bite.friend.domain.exam.dto;

import com.bite.common.core.domain.PageQueryDTO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ExamQueryDTO extends PageQueryDTO {
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "竞赛id")
    private Long examId;

    @Schema(description = "竞赛标题")
    private String title;

    @Schema(description = "开始时间")
    private String startTime;

    @Schema(description = "结束时间")
    private String endTime;

    private Integer status; // 1 -> 已发布  0 -> 未发布

    private Integer type; // 1 -> 历史竞赛  0 -> 未完赛
}